package com.bwie.controller;

import com.bwie.service.TbDictService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: badaotianqiong
 * @Date: 2025/6/24 15:53
 * @Description:
 **/
@RestController
@RequestMapping("/shop/index")
public class DictController {
    @Autowired
    private TbDictService tbDictService;

    @PostMapping("getDictList/{typeId}")
    public R getDictList(@PathVariable("typeId") Integer typeId){
        return tbDictService.getDictList(typeId);
    }
}
